package com.jdy.haoduoai.intface;

import android.app.Activity;

import com.jdy.haoduoai.util.ResponseResult;

/**
 * do custom things while executing asynctask. Assumed to do this while
 * initialize asynctask,but this method can NOT import any external
 * variables,see {@link #OnAsyncTaskDataToActivity}
 * 
 * @author zp @ 2015-5-21 上午9:16:06
 */
public interface IAsyncTask {

  public ResponseResult doInbackground(Activity activity);

  public void onRecieveData(Activity activity, ResponseResult result);

}
